laravel controller code for editing a column in a table

320

laravel controller code for editing a column in a table -

DB::table('users')
            ->where('id', 1)
            ->update(['votes' => 1]);

Comments

Submit
0 Comments